package com.yumeng.common.utils;

import lombok.extern.slf4j.Slf4j;

/**
 * 密码工具-基于spring-security
 *
 * @author wxd
 * @date 2024/6/18 上午9:18
 */
@Slf4j
public class PasswordUtils {

    public static void main(String[] args){
        String password = "123456";
/*        UserDetails user = User.withDefaultPasswordEncoder()
                .username("user")
                .password(password)
                .roles("user")
                .build();
        log.info(user.getPassword());*/
// {bcrypt}$2a$10$QPsQDDIBG4fChXC/oCcVQO5tJsAQdWO3nCWL.0g3j6aVM/OyuILp.

    }

}
